import java.util.List;


public class Else implements Comando {

	private List<AcaoSemantica> conteudo;
	
	public Else(List<AcaoSemantica> conteudo) {
		this.conteudo = conteudo;
	}

	public List<AcaoSemantica> getConteudo() {
		return conteudo;
	}

	@Override
	public String getCode() {
		StringBuffer sb = new StringBuffer();

		for (AcaoSemantica as : conteudo) {
			sb.append(as.getCode());
			sb.append(System.lineSeparator());
		}
		
		return sb.toString();
	}

}
